package com.hectopascal.goalance.service;

import com.hectopascal.goalance.pojo.Performance;
import com.hectopascal.goalance.repository.WorkContentRepository;
import com.hectopascal.goalance.service.Ipml.IPerformanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PerformanceService implements IPerformanceService {
    @Autowired
    WorkContentRepository workContentRepository;

    @Override
    public Performance performanceGet(Integer userId, String month) {
        return workContentRepository.calculatePerformance(userId, month).get();
    }
}
